import { $http } from '@escook/request-miniprogram'

uni.$http = $http

$http.baseUrl = 'https://localhost:8080'

$http.beforeRequest = function(options) {
  uni.showLoading({
    title: '数据加载中...',
  })
}

$http.afterRequest = function () {
  uni.hideLoading()
}